<div class="crumb-wrap">
    <div class="crumb-list"> <i class="icon-font"></i>
        <a href="<?=site_url()?>">首页</a>
        <span class="crumb-step">&gt;</span>
        <span class="crumb-name">推广链接</span>
    </div>
</div>
<div class="search-wrap">
    <input id="project_clone" class="one_click_select" type="text" value="<?=$url?>" style="width: 500px; padding-bottom: 0.35em; padding-left: 0.5em; padding-right: 0.5em !important; margin-left: 20px" readonly="readonly" onclick="focus();select()" name="project_clone">
    <span>点击复制链接</span>
    <a href="javascript:;" onclick="open_view()">点击获取二维码</a>
</div>
<div id="wrap">
    <div class="result-wrap" style="width:800px;border-collapse:collapse;border:1px solid #888;margin: 20px">
    <?=$content?>
    </div>
</div>

<script type="text/javascript">
    $(function(){
        $(".result-wrap a").attr('target','_blank');
    })


    function open_view(){
        $.post('<?=site_url("qrcode/create")?>',{content:'<?=$url?>'},function(data){
            layer.open({
                type: 1,
                title: false,
                closeBtn: false,
                shadeClose: true,
                area: ['490px', '490px'],
                skin: 'yourclass',
                content: "<img style='width:490px;height:490' src='"+data+"' />"
            });
        });
    }

</script>